﻿using SXFramWork.Core;
using SXFramWork.Model;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace SXFramWork.Repository
{
    public class SysMessageHisRepository:RepositoryAbstract<SysMessageHisEntity>,ISysMessageHisRepository
    {
        public SysMessageHisRepository(IDbContext dbContext):base(dbContext)
        {

        }

        public async Task<SysMessageHisEntity> GetByMsgId(string msgId, string uid)
        {
           return await FromSql.GetDataAsync("select * from sysmessagehis where MessageId=@Id and SysUserId=@Uid", new { Id = msgId, Uid = uid });
        }
    }
}
